{extend name="extra@admin/content"}

{block name="content"}
<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">

    <div id="optionContainer">
        <div class="layui-form-item">
            <label class="layui-form-label">订单号</label>
            <div class="layui-input-block">
                <input required type="text" autofocus name="order_sn" value="{$info.order_sn|default=''}" title="订单号" placeholder="" class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>
    <div id="optionContainer">
        <div class="layui-form-item">
            <label class="layui-form-label">申请时间</label>
            <div class="layui-input-block">
                <input required type="text" autofocus name="tuihuo_time" value="{$info.tuihuo_time|date='Y-m-d H:i:s',###}" title="申请时间" placeholder="" class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>
    <div id="optionContainer">
        <div class="layui-form-item">
            <label class="layui-form-label">商品名称</label>
            <div class="layui-input-block">
                <input required type="text" autofocus name="name" value="{$info.name|default=''}" title="商品名称" placeholder="" class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>
    <div id="optionContainer">
        <div class="layui-form-item">
            <label class="layui-form-label">商品属性</label>
            <div class="layui-input-block">
                <input required type="text" autofocus name="spec_detail" value="{if condition='$info.spec_detail'} {$info.spce_detail} {else /}无 {/if}" title="{if condition='$info.spec_detail'} {$info.spce_detail} {else /}无 {/if}" placeholder="" class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">退货原因</label>
        <div class="layui-input-block">
            <textarea  title="退货原因" class="layui-textarea" name="reason" readonly="readonly">{$info.reason|default=""}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">上传图片</label>
        <div class="uploadimage" data-tips-image="{$info.img}" style="background-image: url({$info.img});"></div>
    <div class="hr-line-dashed"></div>
    </div>
    <div id="optionContainer">
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input required type="text" autofocus name="th_deal_result" value="{if condition='$info.th_deal_result eq 0'}未处理{elseif condition='$info.th_deal_result eq 1'/}已驳回{elseif condition='$info.th_deal_result eq 2'}已处理{/if}" title="申请时间" placeholder="" class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>
    {if condition="!empty($info.th_deal_remark)"}
    <div class="layui-form-item">
        <label class="layui-form-label">处理备注</label>
        <div class="layui-input-block">
            <textarea  title="退货原因" class="layui-textarea" name="th_deal_remark" readonly="readonly">{$info.th_deal_remark|default=""}</textarea>
        </div>
    </div>
    {/if}

    <!-- <div class="layui-form-item text-center">
        {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id'/>{/if}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div> -->
    <script>window.form.render();</script>

</form>

{/block}


